package com.tuanzi.loan.web.lazy.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.statistics.CreditCardKeeperStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.creditCardKeeper.CreditCardKeeperStatRequest;
import com.tuanzi.loan.vo.response.statistics.creditCardKeeper.CreditCardKeeperStatResponse;

/**
* @author weibifeng
*/
public class CreditCardKeeperStatistisLazyDataModel extends BaseLazyDataModel<CreditCardKeeperStatRequest, CreditCardKeeperStatResponse> {

	private static final long serialVersionUID = -8524751302590740632L;
	
	private CreditCardKeeperStatService creditCardKeeperStatService = SpringContextHolder.getBean(CreditCardKeeperStatService.class); 

	public CreditCardKeeperStatistisLazyDataModel(CreditCardKeeperStatRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<CreditCardKeeperStatResponse> doLoad(
			PageSearcher<CreditCardKeeperStatRequest> pageSearcher) {
		return creditCardKeeperStatService.list(pageSearcher);
	}

}
